package com.doctor.bean;

import java.util.List;

/**
 * 医学文章和视频的最大id
 */
public class ArticleVideoMaxIdListBean {
	
	private List<ArticleVideoMaxIdBean> dataList;

	public List<ArticleVideoMaxIdBean> getDataList() {
		return dataList;
	}

	public void setDataList(List<ArticleVideoMaxIdBean> dataList) {
		this.dataList = dataList;
	}
	
	
	public boolean isEmpty() {
		return dataList == null || dataList.isEmpty();
	}
	
	public int size() {
		return isEmpty() ? 0 : dataList.size();
	}
	
	public ArticleVideoMaxIdBean getBean(int index) {
		if (index < 0 || index >= size()) {
			return null;
		}
		return dataList.get(index);
	}

}
